﻿using BW.MesProject.BasicData.Domain.Dto;
using BW.MesProject.BasicData.Domain.基础;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.BasicData.Infrastructure
{
    public interface IWorkstationManagServices
    {
        /// <summary>
        /// 添加工位
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> AddWorkstation(WorkstationManagement model);
        // <summary>
        /// 修改加工位
        /// </summary>
        ApiResult<int> UpdateWorkstation(WorkstationManagement model);
        // <summary>
        /// 删除加工位
        /// </summary>
        ApiResult<int> DeleteWorkstation(long id);
        /// <summary>
        /// 获取加工位
        /// </summary>
        ApiPaging<List<WorkstationDto>> GetWorkstation(int pageindex,int pagesize,string? Workstationcode,string? Workstationname);
        /// <summary>
        /// 获取加工位
        /// </summary>
       ApiResult<List<WorkstationManagement>> GetWorkstationBy();
        //根据id获取加工位
        ApiResult<WorkstationManagement> GetWorkstationById(long id);

    }
}
